package com.zy.dp.factorymethod.example2;

public class ExportOperate2
{

	public boolean export(int type, String data)

	{

		ExportFileApi api = null;
		if (type == 1)
		{
			api = new ExportTxtFile();
		}
		else if (type == 2)
		{
			api = new ExportDB();
		}
		else if (type == 3)
		{
			api = new ExportXmlFile();
		}

		return api.exprot(data);

	}

}
